Skip to content

fix: update clone instructions and SDK dependencies for all examples - #362

Merged
yash-pouranik merged 7 commits into
geturbackend:mainfrom
Nitin-kumar-yadav1307:fix/template-clone-instructions
Jul 26, 2026
Merged

fix: update clone instructions and SDK dependencies for all examples#362
yash-pouranik merged 7 commits into
geturbackend:mainfrom
Nitin-kumar-yadav1307:fix/template-clone-instructions

Conversation

@Nitin-kumar-yadav1307

@Nitin-kumar-yadav1307 Nitin-kumar-yadav1307 commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

fix #360

Overview

This PR fixes the template setup instructions in the urBackend dashboard and example READMEs to ensure users can reliably fetch and run the selected examples from a clean clone.

Problem Statement

The source-based template workflow had inconsistent setup instructions:

  • Python SDK Demo README missing the cloned repository directory in cd path
  • Social Demo README using wrong repository URL (yash-pouranik/urBackend instead of geturbackend/urBackend)
  • Kanban Board README missing clone instructions entirely
  • Kanban server depending on local SDK path (file:../../../sdks/urbackend-sdk) which doesn't work outside the monorepo
  • Dashboard template cards showing inconsistent paths that didn't match actual repository structure

Solution

Updated all example READMEs and dashboard metadata to use consistent, correct clone instructions with the canonical repository URL and proper directory paths.

Files Changed

1. examples/python-sdk-demo/README.md

Change: Added urBackend/ prefix to cd path

- cd examples/python-sdk-demo
+ cd urBackend/examples/python-sdk-demo

2. examples/social-demo/README.md

Changes:

  • Fixed repository URL to canonical https://github.com/geturbackend/urBackend.git
  • Added urBackend/ prefix to clone path
  • Updated documentation link to geturbackend/urBackend
- git clone https://github.com/yash-pouranik/urBackend.git
- cd examples/social-demo
+ git clone https://github.com/geturbackend/urBackend.git
+ cd urBackend/examples/social-demo

3. examples/sdk-kanban/README.md

Change: Added clone instructions with correct path

+ ### 1. Clone the Repository
+ 
+ ```bash
+ git clone https://github.com/geturbackend/urBackend.git
+ cd urBackend/examples/sdk-kanban
+ ```
+ 
+ ### 2. Dashboard Setup

4. examples/sdk-kanban/server/package.json

Change: Replaced local file dependency with published package

- "@urbackend/sdk": "file:../../../sdks/urbackend-sdk",
+ "@urbackend/sdk": "0.4.2",

5. apps/web-dashboard/src/pages/Templates.jsx

Change: Updated all template README blocks with correct clone + cd instructions

  • React SDK Demo: Added clone instructions with urBackend/examples/react-sdk-demo path
  • Kanban Board: Added clone instructions with server/client setup
  • Python SDK Demo: Added clone instructions with urBackend/examples/python-sdk-demo path

Acceptance Criteria

All clone instructions use canonical repository URL

  • All examples now use https://github.com/geturbackend/urBackend.git

All cd paths include cloned repository directory

  • All paths follow pattern: cd urBackend/examples/<template-name>

Kanban setup succeeds without local SDK dependency

  • Server now uses published @urbackend/sdk@0.4.2 instead of local file reference

Template cards and READMEs describe the same workflow

  • Dashboard expanded READMEs match actual README files in each example

Users can follow instructions from clean shell after cloning

  • All paths are absolute from the cloned repository root

Testing

  • Verified all README files have correct clone URLs
  • Verified all cd paths include urBackend/ prefix
  • Verified Kanban server uses published SDK version
  • Verified dashboard template cards show consistent instructions

Related Issues

Summary by CodeRabbit

  • Documentation
    • Improved setup guides for the React SDK Demo, Kanban Board, Social (X) Clone, and Python SDK Demo with clear “Full Clone” vs “Sparse Checkout (Recommended)” workflows and step-by-step commands.
    • Corrected the Python SDK demo “quickstart” directory path from the repo root.
    • Updated SDK Kanban “Getting Started” steps with corrected numbering and expanded local startup/environment guidance.
    • Refreshed the social-demo README to use the new repository/docs links.
  • Chores
    • Updated the SDK Kanban example to use the published SDK package version.

- Python SDK Demo README: add urBackend/ prefix to cd path
- Social Demo README: fix repo URL to geturbackend/urBackend, add urBackend/ prefix
- Kanban README: add clone instructions with urBackend/ prefix
- Kanban server: replace file: SDK dependency with published 0.4.2
- Templates.jsx: update all readme blocks with correct clone + cd instructions
@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: ea41ff28-9ce1-4a90-98fd-7a89e713686e

📥 Commits

Reviewing files that changed from the base of the PR and between bbaad1a and ca8a587.

📒 Files selected for processing (1)
  • apps/web-dashboard/src/pages/Templates.jsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/web-dashboard/src/pages/Templates.jsx

📝 Walkthrough

Walkthrough

Updates local setup instructions for React, Kanban, Python, and Social examples, aligns repository and documentation links with the canonical repository, and changes Kanban to use the published SDK version 0.4.2.

Changes

Template setup workflow

Layer / File(s) Summary
Example setup paths and dependency
examples/python-sdk-demo/README.md, examples/sdk-kanban/README.md, examples/sdk-kanban/server/package.json, examples/social-demo/README.md
README commands now use cloned repository paths and canonical links; Kanban setup adds cloning instructions and uses the published SDK package.
Dashboard template setup instructions
apps/web-dashboard/src/pages/Templates.jsx
Embedded React, Kanban, Social, and Python setup instructions now include explicit clone, installation, startup, and configuration steps.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested labels: enhancement

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the PR's main changes to clone instructions and SDK dependency updates.
Linked Issues check ✅ Passed The changes satisfy the setup-flow, path, URL, and Kanban dependency requirements for the listed templates.
Out of Scope Changes check ✅ Passed The modified files align with the stated template setup and dependency objectives, with no clear unrelated changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/web-dashboard/src/pages/Templates.jsx`:
- Around line 58-59: Update the Terminal 2 startup instructions in the Templates
page so they first navigate to the urBackend/examples/sdk-kanban example
directory, then install dependencies and start the client; preserve the existing
client startup commands.
- Around line 62-63: Update the setup instructions in Templates.jsx to document
the complete Kanban schema from examples/sdk-kanban/README.md, including
required fields for the boards and tasks collections and RLS configured with
ownerField=ownerId. Keep the existing Auth and collection setup steps while
making the schema and ownership settings explicit enough for the app’s CRUD
operations.
- Around line 55-64: Update the Kanban setup instructions around the
server/client startup commands to configure environment variables first:
document both server/.env.example and client/.env.example, including
VITE_URBACKEND_PK and URBACKEND_SECRET_KEY, and instruct users to create the
corresponding .env files before running npm install and npm start/dev. Mention
that Vite-loaded environment changes require restarting the client server.

In `@examples/sdk-kanban/README.md`:
- Around line 12-19: Renumber the README setup headings following “Dashboard
Setup” so “Environment Variables” becomes step 3 and “Installation & Run”
becomes step 4, preserving the existing heading text and sequence.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: da07707e-6187-420a-a389-13fc30ca9ba2

📥 Commits

Reviewing files that changed from the base of the PR and between a251cf3 and 73e6d36.

📒 Files selected for processing (5)
  • apps/web-dashboard/src/pages/Templates.jsx
  • examples/python-sdk-demo/README.md
  • examples/sdk-kanban/README.md
  • examples/sdk-kanban/server/package.json
  • examples/social-demo/README.md

Comment thread apps/web-dashboard/src/pages/Templates.jsx Outdated
Comment thread apps/web-dashboard/src/pages/Templates.jsx Outdated
Comment thread apps/web-dashboard/src/pages/Templates.jsx Outdated
Comment thread examples/sdk-kanban/README.md
- Environment Variables: step 3 (was incorrectly labeled as 2)
- Installation & Run: step 4 (was incorrectly labeled as 3)
…tails

- Add environment variable configuration steps (server/.env and client/.env)
- Document complete collection schemas with RLS settings
- Add note about Vite requiring server restart for env changes
- Clarify client startup runs from urBackend/examples/sdk-kanban

## Setup
\`\`\`bash
git clone https://github.com/geturbackend/urBackend.git

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useparticular folder cloning.

1. Clone the repository without downloading the files

git clone --no-checkout --depth 1 <repository_url> <destination_folder>

2. Enter the repository directory

cd <destination_folder>

3. Enable sparse-checkout in cone mode

git sparse-checkout init --cone

4. Specify the folder you want to clone

git sparse-checkout set <path/to/desired/folder>

5. Download the files

git checkout main

- Add Option 1: Full Clone (existing method)
- Add Option 2: Sparse Checkout (recommended for faster setup)
- Sparse checkout clones only the template folder without full repo
@Nitin-kumar-yadav1307

Copy link
Copy Markdown
Collaborator Author

@yash-pouranik

Comment on lines 26 to 27
cd urBackend/examples/react-sdk-demo
npm install

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can add the same for all the examples na?
@Nitin-kumar-yadav1307

@yash-pouranik

Copy link
Copy Markdown
Member

@Nitin-kumar-yadav1307

- React SDK Demo: add Option 1 (Full Clone) and Option 2 (Sparse Checkout)
- Social Media Clone: add Option 1 (Full Clone) and Option 2 (Sparse Checkout)
- Python SDK Demo: add Option 1 (Full Clone) and Option 2 (Sparse Checkout)
- All templates now recommend sparse checkout for faster setup
@vercel

vercel Bot commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

@Nitin-kumar-yadav1307 is attempting to deploy a commit to the Yash Pouranik's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/web-dashboard/src/pages/Templates.jsx`:
- Around line 132-153: Complete the Social demo setup content in the Templates
page by including or directly linking to the exact instructions from
examples/social-demo/README.md for VITE_PUBLIC_KEY, VITE_PROXY_URL, API_KEY,
dependency installation, and starting the client and server terminals. Preserve
the existing clone and sparse-checkout options.
- Around line 32-49: The sparse-checkout instructions in the Templates.jsx
examples must change into their selected directories before running setup
commands. In apps/web-dashboard/src/pages/Templates.jsx#L32-L49, add the
react-sdk-demo directory change before npm install; at `#L79-L110`, add the
sdk-kanban directory change before environment setup and startup; at `#L138-L153`,
add the social-demo directory change before local setup; and at `#L185-L206`, add
the python-sdk-demo directory change before pip install.
- Around line 51-52: Update the template dialog copy in Templates.jsx to use the
React SDK’s VITE_UR_PUBLIC_KEY variable instead of VITE_URBACKEND_PK, and direct
users to place it in the default client Vite .env file while preserving the
existing development-server instruction.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 64e14c77-9e03-483f-89fd-efc2e6a46198

📥 Commits

Reviewing files that changed from the base of the PR and between 73e6d36 and bbaad1a.

📒 Files selected for processing (2)
  • apps/web-dashboard/src/pages/Templates.jsx
  • examples/sdk-kanban/README.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • examples/sdk-kanban/README.md

Comment thread apps/web-dashboard/src/pages/Templates.jsx
Comment thread apps/web-dashboard/src/pages/Templates.jsx Outdated
Comment thread apps/web-dashboard/src/pages/Templates.jsx
- React SDK Demo: add cd examples/react-sdk-demo before npm install, update to VITE_UR_PUBLIC_KEY
- Kanban Board: add cd examples/sdk-kanban before environment setup
- Social Media Clone: add cd examples/social-demo, add env vars (VITE_PUBLIC_KEY, API_KEY) and run instructions
- Python SDK Demo: add cd examples/python-sdk-demo before pip install
- All templates now have consistent sparse checkout + directory navigation flow
@vercel

vercel Bot commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ur-backend-web-dashboard Ready Ready Preview, Comment Jul 26, 2026 8:43am
urbackend Ready Ready Preview, Comment Jul 26, 2026 8:43am

@yash-pouranik
yash-pouranik merged commit 45667be into geturbackend:main Jul 26, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide reliable local setup flows for monorepo templates

2 participants